package top.healthylife.gateway.platform.baihang.api.api.bankcardcheck;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0103.req.BHReqBCThreeElementsV2Dto;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0103.res.BHResBCThreeElementsV2Dto;

/**
 * 银行卡三要素核验 （银行卡+身份证+手机号）
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "银行卡三要素核验[银行卡身份证手机号]" , info = "银行卡三要素核验 （银行卡+身份证+手机号）")
public class BHBCThreeElementsV2Api implements ParentFace<BHReqBCThreeElementsV2Dto, BHResBCThreeElementsV2Dto> {

    private static final String PRODUCT_CODE = "BBAS0103";

    @Override
    public BHResBCThreeElementsV2Dto execute(BHReqBCThreeElementsV2Dto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResBCThreeElementsV2Dto.class);
    }
}
